/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 东莞呵呵
 * Date:2022-04-16
 * Time:10:39
 */
public class TestDemo {
    public static void main(String[] args) {
        MyLinkedList myLinkedList=new MyLinkedList();
        myLinkedList.addList(12);
        myLinkedList.addList(23);
        myLinkedList.addList(34);
        myLinkedList.addList(45);
        myLinkedList.addList(56);
        myLinkedList.display();
        System.out.println("------------------------------");
        myLinkedList.addIndex(0,1);
        myLinkedList.addIndex(6,99);
        myLinkedList.addIndex(2,30);
        myLinkedList.display();
        System.out.println("------------------------------");
        myLinkedList.clear();
        myLinkedList.display();
    }
}
